import axios from '@/utils/axios'
import moment from "moment";

export function addEmpPiece(params) {
  return axios({
    url: '/EmpPiece/add',
    method: 'post',
    data: params
  })
}

export function deleteEmpPiece(params) {
  return axios({
    url: '/EmpPiece/delete',
    method: 'post',
    data: params
  })
}

export function updateOneEmpPiece(params) {
  return axios({
    url: '/EmpPiece/updateOne',
    method: 'post',
    data: params
  })
}

export function updateAllEmpPiece(params) {
  return axios({
    url: '/EmpPiece/updateAll',
    method: 'post',
    data: params
  })
}

export function getRulePage(params) {
  return axios({
    url: '/PieceRule/page',
    method: 'get',
    data: params
  })
}

export function updatetRule(params) {
  return axios({
    url: '/PieceRule/update',
    method: 'post',
    data: params
  })
}

export function deletetRule(params) {
  return axios({
    url: '/PieceRule/delete',
    method: 'post',
    data: params
  })
}

export function addRule(params) {
  return axios({
    url: '/PieceRule/add',
    method: 'post',
    data: params
  })
}

export function addAssessor(params) {
  return axios({
    url: '/PieceRule/addAssessor',
    method: 'post',
    data: params
  })
}

export function getPositionPieceList(params) {
  return axios({
    url: '/PieceRule/getPositionPieceList',
    method: 'post',
    data: params
  })
}

export function getRuleList(params) {
  return axios({
    url: '/PieceRule/getRuleList',
    method: 'post',
    data: params
  })
}

export function getOneRuleList(params) {
  return axios({
    url: '/PieceRule/list',
    method: 'post',
    data: params
  })
}

export function updateAssessor(params) {
  return axios({
    url: '/PieceRule/updateAssessor',
    method: 'post',
    data: params
  })
}

export function removeAssessor(params) {
  return axios({
    url: '/PieceRule/removeAssessor',
    method: 'post',
    data: params
  })
}

export function copy(params) {
  return axios({
    url: '/PieceRule/copy',
    method: 'post',
    data: params
  })
}

export function getPiecePastPage(params) {
  return axios({
    url: '/PieceRule/piecePastPage',
    method: 'get',
    data: params
  })
}

export function getPiecePastSearch(params) {
  return axios({
    url: '/PieceRule/pastSearch',
    method: 'get',
    data: params
  })
}

